home *** CD-ROM | disk | FTP | other *** search
/ Aminet 33 / Aminet 33 - October 1999.iso / Aminet / dev / cross / ava-0.2.5.lha / ava-0.2.5 / examples / define.s < prev    next >
Encoding:
Text File  |  1999-03-23  |  468 b   |  27 lines

  1. /*
  2.   define.s
  3.  
  4.   This example shows the way external macros can be used.
  5.   Uros Platise (c) 1999
  6.  
  7.   You can externally change the value of the SYS_CLK macro.
  8.   Type: 
  9.     ava -DSYS_CLK         ; to set SYS_CLK = 1
  10.   or
  11.     ava -DSYS_CLK=3        ; to set SYS_CLK = 3
  12.  
  13.   This file will link with errors, since label "test_jump" is not defined. 
  14. */
  15.  
  16. #arch AT90S1200
  17.     seg flash.code
  18.  
  19. #ifdef SYS_CLK
  20.     ldi r16, SYS_CLK
  21. #endif
  22.  
  23. extern test_jump
  24. #ifdef test_jump
  25.     rcall test_jump
  26. #endif
  27.